fix(types): resolve pre-existing type errors on release/2.0 - #632
Conversation
Fix implicit `any` parameter types in plugin-hardening.test.ts and add missing chart component stubs (GanttChart, CirclePackingChart, ChoroplethChart) to the chart-helpers.test.ts mock so dynamic imports resolve correctly. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
WalkthroughTest files updated to expand mocked chart component exports and refine transform callback type annotations in plugin test fixtures. Both changes are test-only with no impact on production code or exported APIs. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Suggested labels
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Review rate limit: 0/1 reviews remaining, refill in 60 minutes.Comment |
|
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>



Summary
anyparameter types inplugin-hardening.test.ts(4 occurrences of(d) => dchanged to(d: unknown) => d)GanttChart,CirclePackingChart,ChoroplethChart) to the@neoboard/componentsmock inchart-helpers.test.ts, which causednext/dynamicimport resolution errorsThese are pre-existing type errors on the
release/2.0branch that block CI for all PRs targeting it (#627, #628, #629, #630).Test plan
npx tsc --noEmit -p app/tsconfig.jsonpasses with zero errorsnpm -w app run test -- --runpasses (167 files, 2236 tests, 0 failures)🤖 Generated with Claude Code
Summary by CodeRabbit